﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WindowsAuthen
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //HttpContext.Current.Response.Redirect(HttpContext.Current.Request.QueryString["redirect"]);
                var user = HttpContext.Current.Request.AnonymousID;
                var user2 = HttpContext.Current.Request.LogonUserIdentity.Name;
            }
        }
    }
}
